package org.kzwl.book.controller.web;

import com.baomidou.mybatisplus.core.metadata.IPage;
import io.swagger.annotations.Api;
import org.kzwl.comm.pojo.ResponseData;
import org.kzwl.comm.pojo.bo.VolunteersUserQueryBO;
import org.kzwl.entity.app.CuVolunteersUser;
import org.kzwl.service.web.CuVolunteersUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api("志愿者信息")
@RestController
@RequestMapping("/cu-volunteers-user")
public class VolunteersUserController {

    @Autowired
    CuVolunteersUserService cuVolunteersUserService;

    @PostMapping("/selectPage")
    public ResponseData<IPage<CuVolunteersUser>> selectPage(@RequestBody VolunteersUserQueryBO volunteersUserQueryBO)
    {
        return cuVolunteersUserService.selectPage(volunteersUserQueryBO);
    }
}
